package com.hlkj.pay.service.order;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.vo.openapi.order.resp.PayOrderSubmitApiResp;
import com.hlkj.pay.vo.order.req.CashierPayParamReq;
import com.hlkj.pay.vo.order.resp.CashierMchInfoResp;
import com.hlkj.pay.vo.order.resp.PayOrderResp;

public interface ICashierService {

    /**
     * 创建订单
     * @param cashierPayParamReq
     * @return
     */
    CommonResult<PayOrderSubmitApiResp> createOrder(CashierPayParamReq cashierPayParamReq);

    /**
     * 提交订单
     * @return
     */
    CommonResult<PayOrderResp> submitOrder(String orderNo, String authCode);

    /**
     * 获取店铺名称
     * @param appToken
     * @return
     */
    CommonResult<CashierMchInfoResp> getInfo(String appToken);

    /**
     * 创建微信授权链接
     * @return
     */
    CommonResult<String> wechatAuth(String orderNo, String redirectUrl);

    /**
     * 创建支付宝授权链接
     * @return
     */
    CommonResult<String> alipayAuth(String orderNo, String redirectUrl);
}
